package com.rc.saas.mini.mapper.elec;

import com.rc.saas.mini.common.base.BaseMapper;
import com.rc.saas.mini.model.elec.ElecStation;
import com.rc.saas.mini.model.elec.ElecStationExample;

import java.math.BigDecimal;
import java.util.List;

import com.rc.saas.mini.search.ElecStationSearch;
import com.rc.saas.mini.vo.elec.ElecStationUsableVo;
import org.apache.ibatis.annotations.Param;

public interface ElecStationMapper extends BaseMapper<Long, ElecStation, ElecStationExample> {
    List<ElecStation> listStationBySearch(ElecStationSearch search);

    List<ElecStationUsableVo> listElecStationInfo(List<Long> elecStationIds);

    /**
     * 统计单个桩群可用桩数
     */
    ElecStationUsableVo countElecStationInfoById(Long elecStationId);

    List<ElecStation> listCollection(ElecStationSearch search);

    ElecStation selectStationById(@Param("elecStationId") Long elecStationId,@Param("longitude") BigDecimal longitude,@Param("latitude") BigDecimal latitude);

    void updateFlag();
}